﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form2 : Form
    {
        public Form2(List<string> list)
        {
            InitializeComponent();
            dataGridView1.DataSource = convert(list); 
        }
         
        private void Form2_Load(object sender, EventArgs e)
        {

        }

        public List<Status> convert(List<string> list)
        {
           List<Status> convertedList = new List<Status>();
           foreach (string s in list)
           {
               convertedList.Add(Status.createStatus(s));
           }
           return convertedList;
        }
    }
}
